package com.itheima.opp;

public class Teacher {
    //定义一个构造器，构造器有：有参数构造器，无参数构造器
    public Teacher(){
        System.out.println("无参数构造器被执行了~~~~");
    }
    public Teacher(int a){
        System.out.println(a);
        System.out.println("有参数构造器被执行了~~~~");
    }
}
